
/* $Id: matutils.C 21 2015-03-08 06:34:41Z wangsl2001@gmail.com $ */

#include <mex.h>
#include "matutils.h"

void MatlabCrashLoc(const char *message, const char *file_name, const int line)
{
  char buf[1024];
  
  sprintf(buf, "Matlab error in module %s, line %d\n %s", file_name, line, message);
  mexErrMsgTxt(buf);
}
